import { AuditTConst } from "src/consts/audit_template_const";
import { PopupName } from "src/consts/popup_const";
import * as Api from 'src/api/net';

const state: any = {} as any;

state.id = "";
state.name = "";
state.ind = "";
state.value_type = "";
// vuex

/** 更新数据的 */
const mutations = {
    [AuditTConst.CommitSelectRole](state: any, data: any): void {
        console.log(" audit_role_Panel data update", data);
        state.name = data.value_name;
        state.id = data.value;
        state.ind = data.ind;
        state.value_type = data.value_type;
        WLLib.panel(PopupName.AuditT_Role);
    },
    [AuditTConst.CommitRoleType](state: ListMsgData, data: String): void {
        state.type = data
    }
}


export default {
    state,
    mutations,
}